package com.xuge.vod.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * author: yjx
 * Date :2022/4/2023:58
 **/
@Component
//@PropertySource("classpath:application.properties")
public class ConstantPropertiesUtil implements InitializingBean {

  @Value("${aliyun.vod.file.keyid}")
  private String keyId;

  @Value("${aliyun.vod.file.keysecret}")
  private String keySecret;

  public static String ACCESS_KEY_ID;
  public static String ACCESS_KEY_SECRET;

  @Override
  public void afterPropertiesSet() throws Exception {
    ACCESS_KEY_ID = keyId;
    ACCESS_KEY_SECRET = keySecret;
  }
}